home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4367 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Complete Newbie Question
  5. Date: 3 Feb 1996 17:07 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <3FEB199617073795@erich.triumf.ca>
  9. References: <4f0ibf$2pe@mars.dsu.edu>
  10. NNTP-Posting-Host: ftp.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4f0ibf$2pe@mars.dsu.edu>, scotty@fpg.gcomm.com (Scotty) writes...
  14.  
  15. >I'm just learning C, and for the life of me I can't find anywhere
  16. >how to make the printf statements print in the Upper left corner of the
  17. >screen, nor how to clear the screen.  If you could help me, please do! ;)
  18.  
  19. Any sort of "fancy" screen manipulation (anything other than printing where the
  20. cursor happens to be) is very much system- (and even compiler-)specific.
  21.  
  22. for MS-DOS, with Borland and Microsoft compilers, you have to use functions
  23. declared in conio.h.
  24.  
  25. for Borland compilers, use clrscr() to clear the screen, gotoxy() to position
  26. the cursor, and cprintf() or cputs() to output.  Microscoft uses different
  27. names for clrscr() and gotoxy(), I think.
  28.  
  29. For other systems (and even for MS-DOS) the "curses" library does this.
  30.  
  31. >P.S.  Please don't send me e-mail, my address doesn't work...
  32.  
  33. Try to get your address fixed...
  34.  
  35. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  36. Internet: bennett@triumf.ca         | of one another only when one can be
  37. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  38. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  39. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  40.  
  41.  
  42.  
  43.  
  44.